<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>${initParam.MyApplicationTitle }</title>
    <link href="<%=basePath%>resource/theme/css/style.css" rel="stylesheet" type="text/css"/>
    <script language="JavaScript" src="<%=basePath%>resource/theme/js/jquery.js"></script>
    <script src="<%=basePath%>resource/theme/js/cloud.js" type="text/javascript"></script>

    <script language="javascript">
        $(function () {
            $('.loginbox').css({'position': 'absolute', 'left': ($(window).width() - 692) / 2});
            $(window).resize(function () {
                $('.loginbox').css({'position': 'absolute', 'left': ($(window).width() - 692) / 2});
            })
        });

        function regedit() {

            var iTop = (window.screen.availHeight - 30 - 500) / 2;
            var iLeft = (window.screen.availWidth - 10 - 600) / 2;

            window.open('<%=basePath%>regedit.action', 'newwindow', 'height=700,width=600,top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no');
        }
    </script>

</head>

<body style="background-color:#1c77ac; background-image:url(<%=basePath%>resource/theme/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">


<div id="mainBody">
    <div id="cloud1" class="cloud"></div>
    <div id="cloud2" class="cloud"></div>
</div>


<div class="logintop">
    <span>欢迎登录${initParam.MyApplicationTitle }</span>
    <ul>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
        <li><a href="#"></a></li>
    </ul>
</div>

<div class="loginbody">

    <span class="systemlogo"></span>

    <div class="loginbox" style="height: 400px;">
        <form id="loginform" name="loginform" action="login.action" method="post" target="_self">
            <ul>
                <li><input name="username" type="text" class="loginuser" value="" onclick="JavaScript:this.value=''"/>
                </li>
                <li><input name="password" type="password" class="loginpwd" value=""
                           onclick="JavaScript:this.value=''"/></li>

                <li>
                    <label><input name="selectType" type="radio" value="admin" checked="checked" />管理员 </label> 
					<label><input name="selectType" type="radio" value="pdy" />派单员 </label> 
					<label><input name="selectType" type="radio" value="kdy" />快递员 </label> 
					<label><input name="selectType" type="radio" value="kh" />客户 </label> 

                </li>
                <li><input name="" type="submit" class="loginbtn" value="登录"/>&nbsp;
                    <input onclick="regedit()" name="" type="button" class="loginbtn" value="客户注册"/><label
                            style="color: red;">${message }</label></li>
            </ul>
        </form>

    </div>

</div>


<div class="loginbm"> 仅供学习交流，勿用于任何商业用途</div>


</body>

</html>
